<template>
  <div class="page-tools">
    <el-card>
      <el-row type="flex" justify="space-between" align="middle">
        <el-col>
          <!-- 左侧 -->
          <div v-if="isShow" class="left">
            <i class="el-icon-info" />
            <slot name="left" />
          </div>
        </el-col>
        <el-col>
          <!-- 右侧 -->
          <el-row type="flex" justify="end">
            <slot name="right" />
          </el-row>
        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'PageTool',
  props: {
    isShow: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style scoped lang="scss">
.page-tools {
    margin: 10px 0;
    .left {
      line-height: 34px;
      i {
        margin-right: 5px;
        color: #409eff;
      }
      display: inline-block;
      padding: 0px 10px;
      border-radius: 3px;
      border: 1px solid rgba(145, 213, 255, 1);
      background: rgba(230, 247, 255, 1);
    }
 }
</style>
